package com.xqboss.apps.vo.user;

import com.xqboss.apps.enums.user.UserWalletEnum;
import com.xqboss.apps.enums.user.WalletChangeDirectionEnum;
import com.xqboss.apps.enums.user.WalletChangeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *     用户提现记录
 * </p>
 * @author Trent
 * @date 2023/8/22
 */
@Data
@ApiModel
public class WithdrawRecordVo {

    @ApiModelProperty("记录ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("钱包类型")
    private UserWalletEnum walletType;

    @ApiModelProperty("变动金额")
    private BigDecimal amount;

    @ApiModelProperty("变动后金额")
    private BigDecimal amountAfter;

    @ApiModelProperty("变动前金额")
    private BigDecimal amountBefore;

    @ApiModelProperty("流动方向")
    private WalletChangeDirectionEnum direction;

    @ApiModelProperty("变动类型")
    private WalletChangeTypeEnum changeType;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("订单号")
    private Long orderId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    /**
     * 热豆赠送 接收人的id
     */
    @ApiModelProperty("热豆赠送 接收人的id 如果当前记录是赠送,热豆记录显示此id")
    private Long recipientUserId;
    /**
     * 热豆赠送 赠送人的id
     */
    @ApiModelProperty("热豆赠送 赠送人的id 如果当前记录是被增,热豆记录显示此id")
    private Long giveUserId;


    /**
     * 扳手赠送 接收人的id
     */
    @ApiModelProperty("扳手赠送 接收人的id 如果当前记录是赠送,扳手记录显示此id")
    private Long recipientWrenchUserId;
    /**
     * 扳手赠送 赠送人的id
     */
    @ApiModelProperty("扳手赠送 赠送人的id 如果当前记录是被增,扳手记录显示此id")
    private Long giveWrenchUserId;


}
